package com.dc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

/**
 * @author: KEYD
 * @Date: 2020/1/3 11:16
 * @Desc: 商品搜索服务的启动类
 */
@SpringBootApplication
@EnableElasticsearchRepositories(basePackages = {"com.dc.product.es"})
public class AppProducts {
    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(AppProducts.class, args);
    }
}
